package com.springboot2.shiro.comm.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * JpaExtraRepository
 *
 * @author Archx[archx@foxmail.com]
 * at 2018/7/13 21:18
 */
@NoRepositoryBean
public interface JpaExtraRepository<ID extends Number, T> extends JpaRepository<T, ID> {

    Page<T> findAll(Specification<T> spec, Pageable pageable);
}
